package com.bjgov.scoresys.form;

import org.apache.struts.action.ActionForm;

import com.bjgov.scoresys.entity.ScoreTree;
import com.bjgov.scoresys.service.ScoreSubItemsHandler;
import com.bjgov.scoresys.service.ScoreTreeHandler;

public class ScoreSubItemsForm extends ActionForm{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5201732582564194652L;
	
	private int id;
	private int pid;
	private String itemname;
	private String itemdesc;
	private String content;
	private ScoreTree scoreTree;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getItemname() {
		return itemname;
	}
	public void setItemname(String itemname) {
		this.itemname = itemname;
	}
	public String getItemdesc() {
		return itemdesc;
	}
	public void setItemdesc(String itemdesc) {
		this.itemdesc = itemdesc;
	}
	public ScoreTree getScoreTree() {
		scoreTree = ScoreTreeHandler.loadById(getPid());
		return scoreTree;
	}
	public void setScoreTree(ScoreTree scoreTree) {
		this.scoreTree = scoreTree;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	
}
